package com.mf.entity.dto.dept;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @Author: lmf
 * @Create: 2024/9/20 9:28
 * Description: 岗位
 */
@Data
public class PositionDto {
    @Schema(description = "岗位id")
    private Integer id;

    @NotBlank(message = "岗位名称不能为空")
    private String name;
    @Schema(description = "所属部门", example = "1")
    @NotNull(message = "所属部门不能为空")
    private Integer deptId;

    @Schema(description = "父级id")
    private Integer pid;

    @Schema(description = "排序")
    private int sort;
    private String remark;

}
